<%@ page import="com.scfire.project.Project;com.scfire.project.MainCate" %>

<div class="mb15 ${hasErrors(bean: projectInstance, field: 'name', 'error')} required">
	<span class="form-title"><g:message code="project.name.label" default="项目名称：" /><span class="red-highlight">*</span></span>
	<span class="form-input"><g:textField name="name" required="" value="${projectInstance?.name}" placeholder="名称" id="name"/></span>
	<span class='form-error' style='line-height : 32px;' id='name_error'></span>
	<div class="clearboth"></div>
</div>

<div class="mb15 ${hasErrors(bean: projectInstance, field: 'description', 'error')} required">
	<span class="form-title"><g:message code="project.description.label" default="项目描述：" /><span class="red-highlight">*</span></span>
	<span class="form-input"><g:textField name="description" required="" value="${projectInstance?.description}" placeholder="描述" id="description"/></span>
	<span class='form-error' style='line-height : 32px;' id='description_error'></span>
	<div class="clearboth"></div>
</div>

<div class="mb15 ${hasErrors(bean: projectInstance, field: 'detail', 'error')} required">
	<span class="form-title"><g:message code="project.detail.label" default="详细介绍：" /><span class="red-highlight">*</span></span>
	<span class="form-input"><g:textField name="detail" required="" value="${projectInstance?.detail}" placeholder="详细介绍" id="detail"/></span>
	<span class='form-error' style='line-height : 32px;' id='detail_error'></span>
	<div class="clearboth"></div>
</div>

<div class="mb30">
	<span class="form-title"><g:message code="project.img.label" default="项目海报" /><span class="red-highlight">*</span></span>	
	<span class="form-img">
	    <div class="img-box" id='img_div'>
	        <div class="img-default">+</div>
	        <input type="file" name="img" value="" />
	    </div>
	    <div id='img_div_error' class=''></div>
	</span>		
	<div class="clearboth"></div>
</div>

<div class="mb15 ${hasErrors(bean: projectInstance, field: 'maincate', 'error')} required">
	<span class="form-title"><g:message code="project.mainCate.label" default="项目类别：" /><span class="red-highlight">*</span></span>
	<span class="form-input"><g:select name="maincate" from="${MainCate.list()}" optionKey="code" optionValue="name"/></span>
	<span class='form-error' style='line-height : 32px;' id='mainCate_error'></span>
	<div class="clearboth"></div>
</div>

<div class="mb15 ${hasErrors(bean: projectInstance, field: 'fundraises', 'error')} required">
	<span class="form-title"><g:message code="project.detail.label" default="募集清单：" /><span class="red-highlight">*</span></span>	
	<div style="overflow: hidden;">
		<div class="row">
			<div class="col-xs-4">
				<span class="form-input"><g:textField name="fundraisename" required="" value="" placeholder="名称" id="fundraisename"/></span>	
			</div>	
			<div class="col-xs-4">
				<span class="form-input"><g:textField name="fundraiseprice" required="" value="" placeholder="价格" id="fundraiseprice"/></span>
			</div>
			<div class="col-xs-4">
				<span class="form-input"><g:textField name="fundraisenum" required="" value="" placeholder="数量" id="fundraisenum"/></span>		
			</div>
		</div>
	</div>
	<span class='form-error' style='line-height : 32px;' id='detail_error'></span>
	<div class="clearboth"></div>
</div>


<div class="mb30">
	<span class="form-title"><g:message code="project.projectPics.label" default="图文信息" /><span class="red-highlight">*</span></span>	
	<div style="overflow: hidden;">
		<div class="row">
			<div class="col-xs-4">
				<span class="form-img">
				    <div class="img-box" id='img_div'>
				        <div class="img-default">+</div>
				        <input type="file" name="projectpic" value="" />
				    </div>
				    <div id='img_div_error' class=''></div>
				</span>	
			</div>
		</div>
		<div class="row">
			<div class="col-xs-4">
				<span class="form-input"><g:textField name="projectcontent" required="" value="${projectInstance?.projectPics}" placeholder="内容" id="projectcontent"/></span>
			</div>
		</div>
	</div>
	<div class="clearboth"></div>
</div>



<div class="mb15 ${hasErrors(bean: projectInstance, field: 'startDate', 'error')} required">
	<span class="form-title"><g:message code="project.startDate.label" default="募集开始时间" /><span class="red-highlight">*</span></span>
	<span class="form-input"><g:datePicker name="startDate" required="" value="${projectInstance?.startDate}" precision="minute" id="startDate"/></span>
	<span class='form-error' style='line-height : 32px;' id='startDate_error'></span>
	<div class="clearboth"></div>
</div>

<div class="mb15 ${hasErrors(bean: projectInstance, field: 'endDate', 'error')} required">
	<span class="form-title"><g:message code="project.endDate.label" default="募集结束时间" /><span class="red-highlight">*</span></span>
	<span class="form-input"><g:datePicker name="endDate" required="" value="${projectInstance?.endDate}" precision="minute" id="endDate"/></span>
	<span class='form-error' style='line-height : 32px;' id='endDate_error'></span>
	<div class="clearboth"></div>
</div>
